package cn.ainit.fx.pixiao.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
 
@Entity
@Table(name = "FX_PX_ITEM")
public class FxPiXiaoItem implements java.io.Serializable {
 
	private static final long serialVersionUID = -2028151349363910128L;
	
	private String pxItemId;
	private String pxId;
	private String stockId;
	private String spId;
	private String spUnit;
	private double spAmount;
	private Long spRealPrice;
	private Long taxRate;
	private Long taxMoney;
	private Long realMoney;
	private String spDiscount;
	private Long spPrice;
	private String memo;
	private Long realMoneyItem;
	private Long totalMoneyItme;
	private Long alreadyTimes;
	private Long alreadyAmount;
	private Date lastPxDate;
	private Long packageP;

	// Constructors

	/** default constructor */
	public FxPiXiaoItem() {
	}

	/** minimal constructor */
	public FxPiXiaoItem(String pxItemId) {
		this.pxItemId = pxItemId;
	}

	 
	@Id
	@Column(name = "PX_ITEM_ID", unique = true, nullable = false, length = 32)
	public String getPxItemId() {
		return this.pxItemId;
	}

	public void setPxItemId(String pxItemId) {
		this.pxItemId = pxItemId;
	}

	@Column(name="PX_ID")
	public String getPxId() {
		return pxId;
	}
	
	public void setPxId(String pxId) {
		this.pxId = pxId;
	}
	
	@Column(name = "STOCK_ID", length = 32)
	public String getStockId() {
		return this.stockId;
	}

	public void setStockId(String stockId) {
		this.stockId = stockId;
	}

	@Column(name = "SP_ID", length = 32)
	public String getSpId() {
		return this.spId;
	}

	public void setSpId(String spId) {
		this.spId = spId;
	}

	@Column(name = "SP_UNIT", length = 32)
	public String getSpUnit() {
		return this.spUnit;
	}

	public void setSpUnit(String spUnit) {
		this.spUnit = spUnit;
	}

	@Column(name = "SP_AMOUNT", precision = 22, scale = 0)
	public double getSpAmount() {
		return spAmount;
	}
	
	public void setSpAmount(double spAmount) {
		this.spAmount = spAmount;
	}
	
	@Column(name = "SP_REAL_PRICE", precision = 18, scale = 0)
	public Long getSpRealPrice() {
		return this.spRealPrice;
	}

	public void setSpRealPrice(Long spRealPrice) {
		this.spRealPrice = spRealPrice;
	}

	@Column(name = "TAX_RATE", precision = 18, scale = 0)
	public Long getTaxRate() {
		return this.taxRate;
	}

	public void setTaxRate(Long taxRate) {
		this.taxRate = taxRate;
	}

	@Column(name = "TAX_MONEY", precision = 18, scale = 0)
	public Long getTaxMoney() {
		return this.taxMoney;
	}

	public void setTaxMoney(Long taxMoney) {
		this.taxMoney = taxMoney;
	}

	@Column(name = "REAL_MONEY", precision = 18, scale = 0)
	public Long getRealMoney() {
		return this.realMoney;
	}

	public void setRealMoney(Long realMoney) {
		this.realMoney = realMoney;
	}

	@Column(name = "SP_DISCOUNT", length = 32)
	public String getSpDiscount() {
		return this.spDiscount;
	}

	public void setSpDiscount(String spDiscount) {
		this.spDiscount = spDiscount;
	}

	@Column(name = "SP_PRICE", precision = 18, scale = 0)
	public Long getSpPrice() {
		return this.spPrice;
	}

	public void setSpPrice(Long spPrice) {
		this.spPrice = spPrice;
	}

	@Column(name = "MEMO", length = 500)
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	@Column(name = "REAL_MONEY_ITEM", precision = 18, scale = 0)
	public Long getRealMoneyItem() {
		return this.realMoneyItem;
	}

	public void setRealMoneyItem(Long realMoneyItem) {
		this.realMoneyItem = realMoneyItem;
	}

	@Column(name = "TOTAL_MONEY_ITME", precision = 18, scale = 0)
	public Long getTotalMoneyItme() {
		return this.totalMoneyItme;
	}

	public void setTotalMoneyItme(Long totalMoneyItme) {
		this.totalMoneyItme = totalMoneyItme;
	}

	@Column(name = "ALREADY_TIMES", precision = 18, scale = 0)
	public Long getAlreadyTimes() {
		return this.alreadyTimes;
	}

	public void setAlreadyTimes(Long alreadyTimes) {
		this.alreadyTimes = alreadyTimes;
	}

	@Column(name = "ALREADY_AMOUNT", precision = 18, scale = 0)
	public Long getAlreadyAmount() {
		return this.alreadyAmount;
	}

	public void setAlreadyAmount(Long alreadyAmount) {
		this.alreadyAmount = alreadyAmount;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "LAST_PX_DATE", length = 7)
	public Date getLastPxDate() {
		return this.lastPxDate;
	}

	public void setLastPxDate(Date lastPxDate) {
		this.lastPxDate = lastPxDate;
	}

	@Column(name = "PACKAGE", precision = 18, scale = 0)
	public Long getPackageP() {
		return packageP;
	}
	public void setPackageP(Long packageP) {
		this.packageP = packageP;
	}

}